<?php

$photo_id = $_GET['id'];

$photo = $photo_source->getPhoto($photo_id);
if ($photo instanceof UriMovie_I) {
    include('templates/moviedetails.php');
} else {
    include('templates/photodetails.php');
}
